<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>网站模块信息</title>
 <%@ include file="/page/include.jsp" %>
</head>
<style type="text/css">
.error {
	color: red;
	padding-left: 10px;
}
</style>
<body class="nav-md" style="background-color: #f7f7f7">
    <div class="container body">
      <div class="main_container">
        <div class="framebody" style="min-height: 100%;" role="main">
          <div class="">
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_content">
                    <form class="form-horizontal form-label-left" id="siteModuleForm"  method="post" action="${pageContext.request.contextPath}/siteModule/saveOrUpdateSiteModule">
                      <input type="hidden"  id="id" name="id" value="${siteModule.id }" >
                      <div class="item form-group">
                        <label class="control-label form-item-label" for="roleName">上级分类:
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                          <select id="parentModuleId" name="parentModuleId" value="${siteModule.parentModuleId }" 
                          	class="selectpicker form-control col-md-3 col-xs-12" title="请选择" <c:if test="${opFlag eq 'edit' }">data-live-search="true"</c:if> >
                          	<c:if test="${opFlag == 'edit' }">
                          		<c:forEach var="item" items="${smeList }" varStatus="status">
                          			<c:if test="${item.id == siteModule.parentModuleId }">
                          				<option value="${item.id }" <c:if test="${item.id == siteModule.parentModuleId}">selected</c:if> >${item.moduleName }</option>
                          			</c:if>
                          		</c:forEach>	
                          	</c:if>
                          	<c:if test="${opFlag == 'add' }">
                          		<c:forEach var="item" items="${smeList }" varStatus="status">
                          			<option value="${item.id }" <c:if test="${item.id == siteModule.parentModuleId}">selected</c:if> >${item.moduleName }</option>
                          		</c:forEach>
                          	</c:if>
                          </select>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label form-item-label" for="roleName">模块名称 : 
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                        	<input id="moduleName" name="moduleName" value="${siteModule.moduleName }" class="form-control col-md-3 col-xs-12"  type="text">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label form-item-label" for="roleName">排序: 
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                          <input id="sortNo" name="sortNo" value="${siteModule.sortNo }" class="form-control col-md-3 col-xs-12"  type="text">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label form-item-label" for="roleName">备注 : 
                        </label>
                        <div class="col-md-5 col-sm-5 col-xs-12">
                        	<textarea name="intro"  class="form-control col-md-3 col-xs-12" >${siteModule.intro }</textarea>
                        </div>
                      </div>
                      
                    </form>
                    <div class="ln_solid"></div>
                    <div class="form-btn-content">
                          <a id="btn_save" class="btn btn-primary">确定</a>
                          <a id="btn_back"class="btn btn-default">返回</a>
                     </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
   <script type="text/javascript"  src="${rootPath}/js/home/siteModule_form.js"></script>
  </body>
</html>